package com.aimer.controller;

import com.aimer.result.Result;
import com.aimer.vo.GoodsBriefVo;
import com.aimer.vo.ProductVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("shop")
@Api(tags = "店铺")
public class ShopController {

    @ApiOperation("查看店铺下商品")
    @GetMapping("findShopProduct")
    public Result findShopProduct(@RequestParam @ApiParam("店铺id")Integer shopId){
        return new Result("",0,new ProductVo(),0);
    }

    @ApiOperation("查看商家商品")
    @GetMapping("findMerchantProduct")
    public Result findMerchantProduct(@RequestParam @ApiParam("商家id")Integer merchantId){
        return new Result("",0,new ProductVo(),0);
    }

    @ApiOperation("选取商品")
    @PostMapping("addShopProduct")
    public Result addShopProduct(@RequestParam @ApiParam("店铺id")Integer id,@RequestParam @ApiParam("产品id")List<Integer> productId){
        return new Result("",0,"",1);
    }

    @ApiOperation("添加商品库存")
    @PostMapping("addProductInventory")
    public Result addProductInventory(@RequestParam @ApiParam("店铺id")Integer id,@RequestBody List<GoodsBriefVo> goodsBriefVos){
        return new Result("",0,"",1);
    }

}
